import yaml
#1.打开yaml文件，限定编码方式，防止中文乱码
f = open("../config/data.yaml", encoding="utf-8")
#2.读取yaml文件
data = yaml.safe_load(f)
print(data)
print(data['hero'])
print(data['hero2'])
print(data['heros_name'])
print(data['heros'])
print(data['heros_name_list'])
